package icu.cocoon.work.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import icu.cocoon.dao.base.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.ToString;

@ToString
@AllArgsConstructor
public enum TestReportStatusEnum implements BaseEnum<Integer> {
  FINISHED(0, "已完成"),
  DEFAULT(1, "未处理"),
  ALLOCATED(2, "已分配"),
  PROCESSED(3, "已处理");

  private final int value;
  @EnumValue
  @JsonValue
  private final String desc;

  @Override
  public Integer getValue() {
    return this.value;
  }

  @Override
  public BaseEnum<Integer>[] getEnums() {
    return values();
  }

}
